<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link href="../css/bootstrap.css"/>
		<script src="../js/vue.js"></script>
		<script src="../js/vueTree.js"></script>
	</head>
	<body>
		<div id="app">
			<template>
				<funtree></funtree>
			</template>
		</div>
		
		<template id='ftree'>
			<div>
				
			</div>
		</template>
		
		
		
		<template id='node'>
			<div>
				<ul>
					<li>{{node.name}}</li>
					<!-- 如果还有子节点 -->
					<ul v-if="hasSonList(node)">
						<li v-for="(sonNode,index) in node.sonList" :key="sonNode.id" >{{sonNode.name}}</li>
					</ul>
				</ul>
			</div>
		</template>
		<script>
			var mVue = new Vue({
				el:'#app',
				data:{
					
				},
				methods:{
					
				}
			})
		</script>
	</body>
</html>
